using Core;

namespace Server;

[PlayCommand(CommandKey.Register)]
public sealed class UserRegister : PlayRespAsyncCommand<RegisterPacket, RegisterRespPacket>
{
    protected override ValueTask<RegisterRespPacket> ExecuteAsync(PlaySession session, RegisterPacket packet)
    {
        return ValueTask.FromResult(new RegisterRespPacket
        {
            UserId = 20424666,
            Identifier = packet.Identifier,
            SuccessFul = true,
        });
    }
}